<%@ page language="java" import="java.util.*,office.BusiUtil" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<body>
	<div id="pop_up_content">
		<div class="pop_up_title images_1">
			新建绩效考核
		</div>
		<div class="pop_up_body">
			<form id="thisForm" name="thisForm" action="saveExamineProject.action" method="post" >
				<table border="0" cellpadding="0" cellspacing="0"  width="400">
					<tr>
						<td>
							<div class="form_input_value">
								考核项目类型
							</div>
						</td>
						<td>
							<input type="text" id="beginDate" name="examineProjectVo.etype" value="<s:property value="examineProjectVo.etype"/>" class="longinput required"  >
						</td>
					</tr>
					<tr>
						<td>
							<div class="form_input_value">
								考核项目名称
							</div>
						</td>
						<td>
							<input type="text" id="beginDate" name="examineProjectVo.name" value="<s:property value="examineProjectVo.name"/>" class="longinput required" >
							<input type=hidden id="id" name="examineProjectVo.id" value="<s:property value="examineProjectVo.id"/>">
						</td>
					</tr>
					<tr>
						<td>
							<div class="form_input_value">
								考核人员级别
							</div>
						</td>
						<td>
							<s:select id="ptype" list="#{'1':'普通员工','2':'管理人员'}" name="examineProjectVo.ptype" headerKey="" headerValue="请选择" value="examineProjectVo.ptype" theme="simple" cssClass="required"/>
						</td>
					</tr>
					<tr>
						<td>
							<div class="form_input_value">
								考核项目参考分
							</div>
						</td>
						<td>
							<input type="text" id="beginDate" name="examineProjectVo.score" value="<s:property value="examineProjectVo.score"/>" class="longinput required"  >
						</td>
					</tr>
					<tr>
						<td>
							<div class="form_input_value">
								考核备注
							</div>
						</td>
						<td>
							<input type="text" id="endDate" name="examineProjectVo.memo" value="<s:property value="examineProjectVo.memo"/>" value="" class="longinput required" >
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="button" value="提交保存" id="thisButton" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
							<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
<script type="text/javascript">
	/* 表单提交 */
	i.formSubmit("thisButton",	//绑定的按钮id
				  "thisForm" ,   //提交的表单id
				  function(result){
					  	var jsonMsgObj=new JsonMsgObj(result);
						var  msg=jsonMsgObj.getMessage();
					    var codeId=jsonMsgObj.getCodeid();
						var isOk=jsonMsgObj.getIsok();
						if( isOk ){
						    aerouiAlert(msg);
							hideDialog();// 隐藏窗口
							window.location.reload();
						}else{		// 如果编辑失败了
						  JsManageInfoHandleException( result , function(msg , codeId , isOk){
						  		hideDialog();// 隐藏窗口
						   });
					   }
					});
</script>